/**
 * \file network/layers/eth.h
 * \date 10-16-2009
 * \author Davide Gessa
 */
#ifndef ETH_H
#define ETH_H

#include <ctype.h>

typedef int driver_t;

/**
 * Struttura che contiene il driver per il device adatto al networking
 */
typedef struct eth_device_p
{
	driver_t *driver;					///< Driver dell'interfaccia
	struct eth_device_p *next;			///< Prossimo device
} eth_device_t;



/**
 * Struttura di un frame eth
 */
typedef struct
{
	
} eth_frame_t;



eth_device_t *eth_device_list;

int eth_add_device(driver_t *);
int eth_del_device(char *);
eth_device_t *eth_get_device(char *);
eth_frame_t *eth_recv_frame(eth_device_t *, size_t);
void eth_send_frame(eth_device_t *, eth_frame_t *, size_t);

#endif
